import request from '@/utils/request'

// 查询会员余额列表
export function listMemberBalanceRecord(query) {
  return request({
    url: '/jx/memberBalanceRecord/list-map',
    method: 'get',
    params: query
  })
}

// 查询会员余额详细
export function getMemberBalanceRecord(id) {
  return request({
    url: '/jx/memberBalanceRecord/' + id,
    method: 'get'
  })
}

// 新增会员余额
export function addMemberBalanceRecord(data) {
  return request({
    url: '/jx/memberBalanceRecord',
    method: 'post',
    data: data
  })
}

// 修改会员余额
export function updateMemberBalanceRecord(data) {
  return request({
    url: '/jx/memberBalanceRecord',
    method: 'put',
    data: data
  })
}

// 删除会员余额
export function delMemberBalanceRecord(id) {
  return request({
    url: '/jx/memberBalanceRecord/' + id,
    method: 'delete'
  })
}

// 导出会员余额
export function exportMemberBalanceRecord(query) {
  return request({
    url: '/jx/memberBalanceRecord/export',
    method: 'get',
    params: query
  })
}
